home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
util4
/
0utils.lha
/
0Utils
/
ScriptName.doc
< prev
next >
Wrap
Text File
|
1995-09-05
|
1KB
|
70 lines
NAME
ScriptName
SYNOPSIS
ScriptName - output the (temp) name of the current script - Requires v37
INPUTS
""
DESCRIPTION
ScriptName just tries to output the contents of
process->cli->commandfile. this value is defined only,
if:
1) the command was called from inside a script, AND
2) the script had to be buffered in "T:Command-??-???"
this is, e.g. if the script contained a ".KEY"
directive or was read from an interactive device.
RESULT
"T:Command-xx-Tyy" if possible.
NOTES
* CLI - only
* should compile with SAS-C
BUGS
The result is most likely something like
'T:Command-??-T??' with ? being numbers,
if the system 'decided' to create a tempfile;
Up to now we can not get another result,
for if no tempfile is created, we get an
empty string =8-(.
EXAMPLES
>ScriptName
"ScriptName: object is not of required type"
(Was: "* Not in a Script *")
>echo "scriptname" | srun execute in:
"T:Command-00-T04"
HISTORY
16-02-95 b_noll created
20-02-95 b_noll restructured source
21-02-95 b_noll added version/format-prefix/offset
27-02-95 b_noll replace BSTR extraction by FPrintf %b
20-03-95 b_noll added args diagnostics
19-08-95 b_noll created .data file
AUTHOR
Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
noll@student.uni-kl.de